package cc.catface.dao.biz.ad;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@ApiModel
@TableName("ad_channel")
public class AdChannel {
    @TableId(value = "id", type = IdType.AUTO)
    private long id;
    @TableField("name")
    @ApiModelProperty(value = "频道名称")
    private String name;
    @TableField("description")
    @ApiModelProperty(value = "频道描述")
    private String description;
    @TableField("is_default")
    @ApiModelProperty(value = "是否默认频道")
    private long isDefault;
    @TableField("status")
    @ApiModelProperty(value = "状态")
    private long status;
    @TableField("ord")
    @ApiModelProperty(value = "排序")
    private long ord;
    @TableField("created_time")
    @ApiModelProperty(value = "创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createdTime;

}
